#
# Be sure to run `pod lib lint TestKit.podspec' to ensure this is a
# valid spec before submitting.
#
# Any lines starting with a # are optional, but their use is encouraged
# To learn more about a Podspec see https://guides.cocoapods.org/syntax/podspec.html
#

Pod::Spec.new do |s|
  s.name             = 'TestKit'
	s.version          = '1.0.31'
  s.summary          = 'A short description of TestKit.'

  s.homepage         = 'https://gitee.com/chengssir/TestKit'
  s.license          = { :type => 'MIT', :file => 'LICENSE' }
  s.author           = { 'guoshuai.cheng' => 'guoshuai.cheng@asiainnovations.com' }
  s.source           = { :git => 'https://gitee.com/chengssir/TestKit.git', :tag => s.version.to_s }
  
  s.pod_target_xcconfig = { 'USER_HEADER_SEARCH_PATHS' => '${PODS_ROOT}/**' }
  s.ios.deployment_target = '9.0'
  
  s.pod_target_xcconfig = { 'EXCLUDED_ARCHS[sdk=iphonesimulator*]' => 'arm64' }
  s.user_target_xcconfig = { 'EXCLUDED_ARCHS[sdk=iphonesimulator*]' => 'arm64' }
  s.static_framework = true
  s.requires_arc = false

  
if ENV['use_code'] or ENV[s.name+'_use_code']
    puts '********* TestKit code *********'
    s.source_files = 'TestKit/Classes/**/*'
  else
      puts '********* TestKit Frameworks *********'
      s.vendored_frameworks = 'Frameworks/*.xcframework'
      s.ios.vendored_frameworks = 'Frameworks/*.xcframework'   #指定当前库依赖的Framework
      s.public_header_files='TestKit/Classes/**/*.{h}'
  end
  
   
   s.pod_target_xcconfig = {
       'GCC_PREPROCESSOR_DEFINITIONS' => '$(inherited) GPB_USE_PROTOBUF_FRAMEWORK_IMPORTS=1',
       'USER_HEADER_SEARCH_PATHS' => '$SRCROOT/../TestKit/Classes'
   }
   
   s.dependency 'Protobuf'

end
